package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.TrackStat;
import com.atguigu.tingshu.vo.album.TrackStatVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

@Mapper
public interface TrackStatMapper extends BaseMapper<TrackStat> {


    TrackStatVo getTrackStatVo(@Param(value = "trackId") Long trackId);

    int updateTrackNumByType(@Param("trackId") Long trackId, @Param("type") String statType, @Param("num") Integer count);
}
